package org.example.spring.cycle.thread;

import java.util.Map;

/**
 * @author hzq
 * @date 2022/3/15 11:46
 */
public class LocalThreadHolder {

    private static final ThreadLocal<Map<String, Object>> T = new ThreadLocal<>();
    private static final ThreadLocal<Map<String, Object>> A = new ThreadLocal<>();

    public static Map<String, Object> getT() {
        return T.get();
    }

    public static void setT(Map<String, Object> str) {
        T.set(str);
    }

    public static void removeT() {
        T.remove();
    }

    public static Map<String, Object> getA() {
        return A.get();
    }

    public static void setA(Map<String, Object> str) {
        A.set(str);
    }

    public static void removeA() {
        A.remove();
    }

}
